package com.accesshollywood.grfxOrdering.basics;

public enum BLOCK{
	A ("A"),
	B ("B"),
	C ("C"),
	D ("D"),
	E ("E"),
	F ("F"),
	G ("G");
	
	public String str;
	
	BLOCK(String str){
		this.str = str;
	}
	
	public static BLOCK fromString(String str){
		/*
		if(str.equals(A.str)) return A;
		if(str.equals(B.str)) return B;
		if(str.equals(C.str)) return C;
		if(str.equals(D.str)) return D;
		if(str.equals(E.str)) return E;
		if(str.equals(F.str)) return F;
		if(str.equals(G.str)) return G;
		return null;
		*/
		return BLOCK.valueOf(str);
	}
}
